//
//  UIImage+Kylin_image.m
//  01-LotteryBaseFrame
//
//  Created by Kylin on 16/1/5.
//  Copyright © 2016年 kylin. All rights reserved.
//

#import "UIImage+Kylin_image.h"

@implementation UIImage (Kylin_image)

// 图片不要经过系统渲染
+ (UIImage *)imageWithRenderingImageName:(NSString *)name{
    UIImage *image = [UIImage imageNamed:name];
    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    return image;
}

+ (UIImage *)stretchableImageName:(NSString *)name{
    UIImage *image = [UIImage imageNamed:name] ;
    return  [image stretchableImageWithLeftCapWidth:image.size.width * 0.5f topCapHeight:image.size.height * 0.5f];
    
}
@end
